﻿#include "page_1.h"
#include "app.h"

/**********************
 *       WIDGETS
 **********************/

/**********************
 *  STATIC VARIABLES
 **********************/


lv_obj_t* label_1_ev_0;
lv_obj_t* text_area_1_ev_0;
lv_obj_t* text_area_2_ev_0;
lv_obj_t* text_area_3_ev_0;
lv_obj_t* label_2_ev_0;
lv_obj_t* label_3_ev_0;
lv_obj_t* image_1_ev_0;
lv_obj_t* image_2_ev_0;
lv_obj_t* image_3_ev_0;
lv_obj_t* label_4_ev_0;
lv_obj_t* label_5_ev_0;
lv_obj_t* label_6_ev_0;

lv_obj_t* page_1_create(){
	lv_obj_t *parent = lv_obj_create(NULL, NULL);
	//_lv_obj_set_style_local_color(parent,0,LV_STYLE_BG_COLOR,lv_color_hex(0xaad3f3));

	static lv_style_t label_1_s0;
	lv_style_init(&label_1_s0);
	lv_style_set_text_font(&label_1_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_1_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_1_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_1_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_1_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_1_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_1_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *label_1 = lv_label_create(parent, NULL);
	lv_obj_add_style(label_1, 0, &label_1_s0);
	//lv_obj_set_hidden(label_1, false);
	//lv_obj_set_click(label_1, false);
	//lv_obj_set_drag(label_1, false);
	lv_label_set_text(label_1,"ceshi");
	lv_obj_set_pos(label_1, 9, 4);
	lv_obj_set_size(label_1, 38, 19);

	label_1_ev_0 = label_1;


	static lv_style_t text_area_1_s0;
	lv_style_init(&text_area_1_s0);
	lv_style_set_pad_left(&text_area_1_s0,LV_STATE_DEFAULT,20);
	lv_style_set_bg_color(&text_area_1_s0,lv_color_hex(0xaad3f3));
	lv_style_set_border_width(&text_area_1_s0,LV_STATE_DEFAULT,0);
	lv_style_set_text_font(&text_area_1_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_pad_left(&text_area_1_s0,LV_STATE_CHECKED,20);
	lv_style_set_bg_color(&text_area_1_s0,lv_color_hex(0xaad3f3));
	lv_style_set_border_width(&text_area_1_s0,LV_STATE_CHECKED,0);
	lv_style_set_text_font(&text_area_1_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_pad_left(&text_area_1_s0,LV_STATE_FOCUSED,20);
	lv_style_set_bg_color(&text_area_1_s0,lv_color_hex(0xaad3f3));
	lv_style_set_border_width(&text_area_1_s0,LV_STATE_FOCUSED,0);
	lv_style_set_text_font(&text_area_1_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_pad_left(&text_area_1_s0,LV_STATE_EDITED,20);
	lv_style_set_bg_color(&text_area_1_s0,lv_color_hex(0xaad3f3));
	lv_style_set_border_width(&text_area_1_s0,LV_STATE_EDITED,0);
	lv_style_set_text_font(&text_area_1_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_pad_left(&text_area_1_s0,LV_STATE_HOVERED,20);
	lv_style_set_bg_color(&text_area_1_s0,lv_color_hex(0xaad3f3));
	lv_style_set_border_width(&text_area_1_s0,LV_STATE_HOVERED,0);
	lv_style_set_text_font(&text_area_1_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_pad_left(&text_area_1_s0,LV_STATE_PRESSED,20);
	lv_style_set_bg_color(&text_area_1_s0,lv_color_hex(0xaad3f3));
	lv_style_set_border_width(&text_area_1_s0,LV_STATE_PRESSED,0);
	lv_style_set_text_font(&text_area_1_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_pad_left(&text_area_1_s0,LV_STATE_DISABLED,20);
	lv_style_set_bg_color(&text_area_1_s0,lv_color_hex(0xaad3f3));
	lv_style_set_border_width(&text_area_1_s0,LV_STATE_DISABLED,0);
	lv_style_set_text_font(&text_area_1_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	static lv_style_t text_area_1_s1;
	lv_style_init(&text_area_1_s1);
	static lv_style_t text_area_1_s2;
	lv_style_init(&text_area_1_s2);
	static lv_style_t text_area_1_s3;
	lv_style_init(&text_area_1_s3);
	static lv_style_t text_area_1_s4;
	lv_style_init(&text_area_1_s4);
	lv_style_set_text_font(&text_area_1_s4,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_1_s4,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_1_s4,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_1_s4,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_1_s4,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_1_s4,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_1_s4,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *text_area_1 = lv_textarea_create(parent, NULL);
	lv_obj_add_style(text_area_1, 0, &text_area_1_s0);
	lv_obj_add_style(text_area_1, 1, &text_area_1_s1);
	lv_obj_add_style(text_area_1, 2, &text_area_1_s2);
	lv_obj_add_style(text_area_1, 3, &text_area_1_s3);
	lv_obj_add_style(text_area_1, 4, &text_area_1_s4);
	//lv_obj_set_hidden(text_area_1, false);
	//lv_obj_set_click(text_area_1, true);
	//lv_obj_set_drag(text_area_1, false);
	lv_obj_set_pos(text_area_1, 43, 156);
	lv_obj_set_size(text_area_1, 52, 38);
	lv_textarea_set_text(text_area_1, "75");
	lv_textarea_set_placeholder_text(text_area_1, "");
	//lv_textarea_set_cursor_blink_time(text_area_1, 144);
	lv_textarea_set_one_line(text_area_1, false);
	//lv_textarea_set_pwd_mode(text_area_1, false);
	lv_textarea_set_max_length(text_area_1, 0);
	//lv_textarea_set_scroll_propagation(text_area_1, false);
	//lv_textarea_set_edge_flash(text_area_1, false);

	text_area_1_ev_0 = text_area_1;


	static lv_style_t text_area_2_s0;
	lv_style_init(&text_area_2_s0);
	lv_style_set_text_font(&text_area_2_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	static lv_style_t text_area_2_s1;
	lv_style_init(&text_area_2_s1);
	static lv_style_t text_area_2_s2;
	lv_style_init(&text_area_2_s2);
	static lv_style_t text_area_2_s3;
	lv_style_init(&text_area_2_s3);
	static lv_style_t text_area_2_s4;
	lv_style_init(&text_area_2_s4);
	lv_style_set_text_font(&text_area_2_s4,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s4,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s4,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s4,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s4,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s4,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_2_s4,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *text_area_2 = lv_textarea_create(parent, NULL);
	lv_obj_add_style(text_area_2, 0, &text_area_2_s0);
	lv_obj_add_style(text_area_2, 1, &text_area_2_s1);
	lv_obj_add_style(text_area_2, 2, &text_area_2_s2);
	lv_obj_add_style(text_area_2, 3, &text_area_2_s3);
	lv_obj_add_style(text_area_2, 4, &text_area_2_s4);
	//lv_obj_set_hidden(text_area_2, false);
	//lv_obj_set_click(text_area_2, true);
	//lv_obj_set_drag(text_area_2, false);
	lv_obj_set_pos(text_area_2, 130, 154);
	lv_obj_set_size(text_area_2, 74, 30);
	lv_textarea_set_text(text_area_2, "Text area");
	lv_textarea_set_placeholder_text(text_area_2, "");
	//lv_textarea_set_cursor_blink_time(text_area_2, 144);
	lv_textarea_set_one_line(text_area_2, false);
	//lv_textarea_set_pwd_mode(text_area_2, false);
	lv_textarea_set_max_length(text_area_2, 0);
	//lv_textarea_set_scroll_propagation(text_area_2, false);
	//lv_textarea_set_edge_flash(text_area_2, false);

	text_area_2_ev_0 = text_area_2;


	static lv_style_t text_area_3_s0;
	lv_style_init(&text_area_3_s0);
	lv_style_set_text_font(&text_area_3_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	static lv_style_t text_area_3_s1;
	lv_style_init(&text_area_3_s1);
	static lv_style_t text_area_3_s2;
	lv_style_init(&text_area_3_s2);
	static lv_style_t text_area_3_s3;
	lv_style_init(&text_area_3_s3);
	static lv_style_t text_area_3_s4;
	lv_style_init(&text_area_3_s4);
	lv_style_set_text_font(&text_area_3_s4,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s4,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s4,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s4,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s4,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s4,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&text_area_3_s4,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *text_area_3 = lv_textarea_create(parent, NULL);
	lv_obj_add_style(text_area_3, 0, &text_area_3_s0);
	lv_obj_add_style(text_area_3, 1, &text_area_3_s1);
	lv_obj_add_style(text_area_3, 2, &text_area_3_s2);
	lv_obj_add_style(text_area_3, 3, &text_area_3_s3);
	lv_obj_add_style(text_area_3, 4, &text_area_3_s4);
	//lv_obj_set_hidden(text_area_3, false);
	//lv_obj_set_click(text_area_3, true);
	//lv_obj_set_drag(text_area_3, false);
	lv_obj_set_pos(text_area_3, 210, 155);
	lv_obj_set_size(text_area_3, 76, 30);
	lv_textarea_set_text(text_area_3, "Text area");
	lv_textarea_set_placeholder_text(text_area_3, "");
	//lv_textarea_set_cursor_blink_time(text_area_3, 144);
	lv_textarea_set_one_line(text_area_3, false);
	//lv_textarea_set_pwd_mode(text_area_3, false);
	lv_textarea_set_max_length(text_area_3, 0);
	//lv_textarea_set_scroll_propagation(text_area_3, false);
	//lv_textarea_set_edge_flash(text_area_3, false);

	text_area_3_ev_0 = text_area_3;


	static lv_style_t label_2_s0;
	lv_style_init(&label_2_s0);
	lv_style_set_text_font(&label_2_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_2_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_2_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_2_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_2_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_2_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_2_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *label_2 = lv_label_create(parent, NULL);
	lv_obj_add_style(label_2, 0, &label_2_s0);
	//lv_obj_set_hidden(label_2, false);
	//lv_obj_set_click(label_2, false);
	//lv_obj_set_drag(label_2, false);
	lv_label_set_text(label_2,"流速");
	lv_obj_set_pos(label_2, 61, 90);
	lv_obj_set_size(label_2, 0, 19);

	label_2_ev_0 = label_2;


	static lv_style_t label_3_s0;
	lv_style_init(&label_3_s0);
	lv_style_set_text_font(&label_3_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_3_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_3_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_3_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_3_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_3_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_3_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *label_3 = lv_label_create(parent, NULL);
	lv_obj_add_style(label_3, 0, &label_3_s0);
	//lv_obj_set_hidden(label_3, false);
	//lv_obj_set_click(label_3, false);
	//lv_obj_set_drag(label_3, false);
	lv_label_set_text(label_3,"2024-03-14");
	lv_obj_set_pos(label_3, 222, 9);
	lv_obj_set_size(label_3, 80, 19);

	label_3_ev_0 = label_3;


	static lv_style_t image_1_s0;
	lv_style_init(&image_1_s0);
	lv_obj_t *image_1 = lv_img_create(parent, NULL);
	lv_obj_add_style(image_1, 0, &image_1_s0);
	//lv_obj_set_hidden(image_1, false);
	//lv_obj_set_click(image_1, false);
	//lv_obj_set_drag(image_1, false);
	lv_obj_set_pos(image_1, 53, 102);
	lv_obj_set_size(image_1, 60, 31);

	image_1_ev_0 = image_1;


	static lv_style_t image_2_s0;
	lv_style_init(&image_2_s0);
	lv_obj_t *image_2 = lv_img_create(parent, NULL);
	lv_obj_add_style(image_2, 0, &image_2_s0);
	//lv_obj_set_hidden(image_2, false);
	//lv_obj_set_click(image_2, false);
	//lv_obj_set_drag(image_2, false);
	lv_obj_set_pos(image_2, 135, 104);
	lv_obj_set_size(image_2, 60, 28);

	image_2_ev_0 = image_2;


	static lv_style_t image_3_s0;
	lv_style_init(&image_3_s0);
	lv_obj_t *image_3 = lv_img_create(parent, NULL);
	lv_obj_add_style(image_3, 0, &image_3_s0);
	//lv_obj_set_hidden(image_3, false);
	//lv_obj_set_click(image_3, false);
	//lv_obj_set_drag(image_3, false);
	lv_obj_set_pos(image_3, 214, 103);
	lv_obj_set_size(image_3, 60, 34);

	image_3_ev_0 = image_3;


	static lv_style_t label_4_s0;
	lv_style_init(&label_4_s0);
	lv_style_set_text_font(&label_4_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_4_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_4_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_4_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_4_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_4_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_4_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *label_4 = lv_label_create(parent, NULL);
	lv_obj_add_style(label_4, 0, &label_4_s0);
	//lv_obj_set_hidden(label_4, false);
	//lv_obj_set_click(label_4, false);
	//lv_obj_set_drag(label_4, false);
	lv_label_set_text(label_4,"COG");
	lv_obj_set_pos(label_4, 51, 70);
	lv_obj_set_size(label_4, 32, 19);

	label_4_ev_0 = label_4;


	static lv_style_t label_5_s0;
	lv_style_init(&label_5_s0);
	lv_style_set_text_font(&label_5_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_5_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_5_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_5_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_5_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_5_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_5_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *label_5 = lv_label_create(parent, NULL);
	lv_obj_add_style(label_5, 0, &label_5_s0);
	//lv_obj_set_hidden(label_5, false);
	//lv_obj_set_click(label_5, false);
	//lv_obj_set_drag(label_5, false);
	lv_label_set_text(label_5,"SOG");
	lv_obj_set_pos(label_5, 145, 69);
	lv_obj_set_size(label_5, 32, 19);

	label_5_ev_0 = label_5;


	static lv_style_t label_6_s0;
	lv_style_init(&label_6_s0);
	lv_style_set_text_font(&label_6_s0,LV_STATE_DEFAULT,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_6_s0,LV_STATE_CHECKED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_6_s0,LV_STATE_FOCUSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_6_s0,LV_STATE_EDITED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_6_s0,LV_STATE_HOVERED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_6_s0,LV_STATE_PRESSED,&lv_font_montserrat_16);
	lv_style_set_text_font(&label_6_s0,LV_STATE_DISABLED,&lv_font_montserrat_16);
	lv_obj_t *label_6 = lv_label_create(parent, NULL);
	lv_obj_add_style(label_6, 0, &label_6_s0);
	//lv_obj_set_hidden(label_6, false);
	//lv_obj_set_click(label_6, false);
	//lv_obj_set_drag(label_6, false);
	lv_label_set_text(label_6,"HDG");
	lv_obj_set_pos(label_6, 216, 70);
	lv_obj_set_size(label_6, 33, 19);

	label_6_ev_0 = label_6;


	return parent;
}
